package com.tucue.dao;

import com.tucue.model.InvestmentService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InvestmentServiceMapper {
    int deleteByPrimaryKey(Integer investserviceid);

    int insert(InvestmentService record);

    int insertSelective(InvestmentService record);

    InvestmentService selectByPrimaryKey(Integer investserviceid);

    //批量查询 投资服务
    List<Map<String,String>> selectInvsetServiceInfo ();

    List<InvestmentService> selectAll();

    //<!--更新投资服务产品-->
    int updateInvestmentService(InvestmentService record);

    int updateByPrimaryKey(InvestmentService record);

    //单个删除投资服务产品
    int deleteInvestmentService(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除投资服务产品
    int deleteInvestmentServiceBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改投资服务产品状态
    int updateInvestmentServiceStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}